import store from "../store";

export function timeOut() {
      var newDate = new Date().getTime();
      var orlDate = 0;
      if(store.state.loginDate != null){
        orlDate = new Date(store.state.loginDate).getTime();
      }
      var millis = newDate - orlDate;
      return millis; 
}

export function getExpire(){
  const expire = 30 * 60 * 1000;
  return expire;
}


export function isExpire(){
  return timeOut() < getExpire();
}
